	<div class="modal-panel">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
					&times;
				</button>
				<h4 class="modal-title">
					用户角色设置
				</h4>
			</div>
			<div class="modal-body">
				<form class="settingform">
				<input type="hidden" name="user_id">
				<div class="line">
					<div class="input-group">
						<span class="input-group-addon" style="min-width:150px"><input type="checkbox" name="role_id"><b></b></span>
						<div class="ta-outline"><p></p>
						</div>
					</div>
				</div>
			</form>
			</div>
			<div class="modal-footer">
				<button type="reset" class="btn btn-default">重置</button>
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
				<button type="button" class="btn btn-primary">提交</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
<script>
$(document).ready(function(){
	
	$("#userR button.btn-primary").on('click',function(){
		 _p = $(this).getParentTab();
		 m = getMenuByPermit('admin:user:role');
		 if(m){
			getData(m.url,$("#userR .settingform").serialize(),
			function(res){
				messageBox(res.msg,'角色设置结果');
				if(res.code==200){
					$("#userR").modal('hide');
				}
			});
		}
			
	});
});
</script>